import {ipcRenderer} from "electron";
import {setApi} from "./base";

const api = {
  close: () => {
    return ipcRenderer.sendSync("close");
  },
  printSelf: (option) => {
    return ipcRenderer.sendSync("printSelf", option);
  },
  openItem: (path) => {
    ipcRenderer.send("openItem", path);
  },
};

setApi(api)

